package com.msb.mall.producet.feign;

import com.msb.common.dto.SkuHasStockDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author zhangjiajun
 * @Email zhangjiajun@hydsoft.com
 * @Description
 * @Date 2025/7/24 10:55
 */
@FeignClient("mall-ware")
public interface WareSkuFeignService {

    /**
     * 查询对应的skuId是否有库存
     */
    @PostMapping("/ware/waresku/hasStock")
    List<SkuHasStockDTO> getSkusHasStock(@RequestBody List<Long> skuIds);
}
